let container = document.querySelector(".container");

window.addEventListener("keydown", (e) => {
	container.innerHTML = `<div class="box">
    <p>event.key</p>
            <button class="btn">${e.key === ' ' ? 'Space' : e.key}</button>
        </div><div class="box">
    <p>event.keyCode</p>
            <button class="btn">${e.keyCode}</button>
        </div><div class="box">
    <p>event.code</p>
            <button class="btn">${e.code}</button>
        </div>`;
});
